package com.cn.designpatterns.ex.concrete.prototype;

/**
 * @author zhangyi
 * @date 2018/12/24 15:12
 */
public abstract class Prototype implements Cloneable{

    private String id;
    protected String type;

    abstract void draw();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public  Object clone() throws CloneNotSupportedException {
        Object object = null;
        try {
            object = super.clone();
        }catch (CloneNotSupportedException  e){
            e.printStackTrace();
        }
        return object;
    }
}
